<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>多图文列表</title>
<link rel="shortcut icon" type="image/ico" href="${basePath}/favicon.ico?v=1"/>
<link rel="stylesheet" type="text/css" href="${basePath}/css/style-1.css"/>
<link rel="stylesheet" type="text/css" href="${basePath}/css/style_2_common.css"/>
<script type="text/javascript" src="${basePath}/js/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="${basePath}/js/layer/layer.m.js"></script>
</head>
<body id="nv_member" class="pg_CURMODULE">
<#assign current='menu_pic'>
	<div id="wp" class="wp">
		<#include "/include/header.html"/>
		<!--中间内容-->
		<div class="contentmanage">
			<div class="developer">
				<div class="tableContent">
				<#include "/include/left.html"/>
				<#include "/include/wxtop.html"/>
				<div class="content">
					<div class="cLineB">
						<h4 style="font-size:16px;">自定义回复信息</h4>
						<div class="clr"></div>
					</div>
					<div class="cLine">
						<div class="pageNavigator left">
						<div class="vm01"><a href='${basePath}/admin/txt/toAdd' title='新增文本自定义回复'>新增文本自定义回复</a></div>
						<div class="vm02"><a href='${basePath}/admin/pic/add?wxid=${wxid?default("")}' title='新增图文自定义回复'>新增图文自定义回复</a></div>
                		<div class="vm03">
                			<form action="${basePath}/admin/pic/list" method="post" id="form_pagination">
                			<input type="text" placeholder="请输入标题或关键词按回车键搜索" value="${search?default('')}" class="px" name="search" />
                			<input type="hidden" name="wxid" value="${wxid?default('')}"/>
                			<button type="submit"></button>
                			<div class="clr"></div>
                			</form>
               			</div>
               			<div class="clr"></div>
            		</div>
           		</div>
         		<div class="msgWrap2">
           		<table class="ListProduct Shallow_border_color" border="0"
								cellSpacing="0" cellPadding="0" width="100%">
           			<thead>
           				<tr valign="top">
           					<th class="keywords">关键词</th>
           					<th class="answer">标题</th>
           					 <#-- <th class="category">分类</th> --> 
           					<!-- <th class="time"><p class="turn">排序</p></button></th> -->
           					<#-- <TH class="time">浏览次数</TH> -->
           					<TH class="time">时间</TH>
           					<TH class="edit norightborder">操作</th>
        				</tr>
       				</thead>
       				<tbody>
       					<#if page?exists>
       					<#list page.recordList as bean>
						<tr>
  							<td><div class="answer_text" title="${bean.pKeyword?default('')}">${bean.pKeyword?default('')}</div></td>
  							<td title="${bean.title?default('')}">${bean.title?default('')}</td>
  							<#-- <td>子分类1-1</td>  -->
  							<!-- <td>${bean.pOrdery}</td> -->
  							<#-- <td>${bean.watchTimes?default(0)}</td> -->
  							<td>${bean.createTime?date?default('')}</td>
  							<td class="norightborder">
  								<a href="${basePath}/admin/pic/edit?id=${bean.id?default('')}&wxid=${wxid?default('')}" title="编辑图文自定义回复">编辑</a>
  								<a href="javascript:void(0);"  onclick="delItem('${bean.id?default(0)}');">删除</a>
  							</td>
						</tr>
						</#list>
						</#if>
					</tbody>
				</table>
			</div>
			
			<#include "/include/form_pagination.html"/>
			<#include "/include/simple_page_js.html"/>
		</div>
		<div class="clr"></div>
	</div></div></div>
<!--底部--></div>
<#include "/include/footer.html"/>
</body>
<script type="text/javascript">

function delItem(id){
	if(layer){
		layer.confirm("确定要删除吗？",{icon:0}, function(index){
			location.href="${basePath}/admin/pic/del?id="+id;
			layer.close(index);
		});
	}else{
		if(confirm("确定要删除吗？")){
			location.href="${basePath}/admin/pic/del?id=${bean.id?default('')}";
		}
	}
}
</script>
</html>